import api from './request_api'
export const getcategories= (user: any) => api.get(`/product-categories/?page=${user.page}&limit=${user.limit}&keyword=${user.keyword}&sort=%2Bid`)

export const getwocategories = (id: any) => api.get(`/product-categories/${id}`)

export const addcategories = (user: any) => api.post(`/product-categories`, user)

export const editcategories = (user: any, id: any) => api.put(`/product-categories/${id}`, user)